home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / C / BTCLASS.ZIP / BTCLASS@.EXE / BTKDEF.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-21  |  2.4 KB  |  66 lines

  1. /*//////////////////////////////////////////////////////////////////////////
  2. ///            ___                                                       ///
  3. ///          /_____\                                                     ///
  4. ///         |       |               Copyright (c) 1991, 1992             ///
  5. ///         |   R   |                                                    ///
  6. ///     ----|_______|----                     by                         ///
  7. ///   /------/ | | \------\                                              ///
  8. ///  |       | | | |       |      --  Object Resource Corp.  --          ///
  9. ///  |   O   | | | |   C   |                                             ///
  10. ///  |       |/   \|       |          4323 Brown Suite 249               ///
  11. ///   -------       -------            Dallas,  TX  75219                ///
  12. ///   Object Resource Corp.                                              ///
  13. ///                                      (214) 528-2745                  ///
  14. ///                                                                      ///
  15. ///                                    All Rights Reserved.              ///
  16. ///                                                                      ///
  17. //////////////////////////////////////////////////////////////////////////*/
  18.  
  19. #ifndef BTKDEF_HPP
  20. #define BTKDEF_HPP
  21.  
  22. extern "C"
  23.   {
  24.   #include "bt.h"
  25.   }
  26.  
  27. //////////////////  Class BT_KeyDef  /////////////////////
  28.  
  29. class BT_KeyDef
  30.     {
  31.     friend class BT_Def;    // allow access to counters
  32.     friend class BT_DataSet;    // allow access to counters for supple key add
  33.     protected:
  34.  
  35.     KEYSPEC  kspecs[MAX_KEY_SPECS];
  36.     int     num_keys;
  37.     int      num_keyspecs;
  38.     int      num_dupkeys;
  39.     char     altcolseq[265];
  40.  
  41.     public:
  42.  
  43.     // CONSTRUCTOR
  44.     BT_KeyDef() { num_keys = num_keyspecs = num_dupkeys = 0;
  45.               altcolseq[0] = '\0'; }
  46.  
  47.  
  48.     // add a key segment definition ... more segments to follow
  49.     virtual int AddKeySegment(int Start, int Length, int Flags,
  50.                char KeyType, char NullVal=(char)0);
  51.  
  52.     // add a key segment definition ... NO segments to follow
  53.     // may be redefined for children
  54.     virtual int AddFinalKeySegment(int Start, int Length, int Flags,
  55.                    char KeyType, char NullVal=(char)0);
  56.  
  57.     // use your own Alternate Collating Sequence
  58.     void SetAltCollSeq(void *Ptr);
  59.  
  60.     // use standard Alternate Collating Sequence 'UPPER.ALT'
  61.     void SetUpperAlt(void);
  62.  
  63.     };
  64.  
  65. #endif
  66.